<template>
	<view class="first-page">
		<view class="start-img">
			<img class="start-img-css" src="/static/start.png">
			<!-- <img class="start-img-css" src="https://biapi.vaubang.cn/UploadFiles/Images/lead-1.png"> -->
			<!-- 新年首图 -->
			<!-- <img class="start-img-css" v-if="!isNewYear" src="https://biapi.vaubang.cn/UploadFiles/Images/lead-1.png">
			<img class="start-img-css" v-else src="https://biapi.vaubang.cn/UploadFiles/Images/first-img.png"> -->
			<!-- 客户经理制宣传首图 -->
		</view>
	</view>

</template>

<script>
	import getDateTime from '@/common/getDateTime.js';
	export default {
		data() {
			return {
				isNewYear: true,
			}
		},
		onLoad() {
			let nowDay = getDateTime.dateTimeStr("y-m-d");
			let dayBetween = getDateTime.getDaysBetween("2023-02-05", nowDay);
			if (dayBetween < 0) {
				this.isNewYear = false;
			}
			setTimeout(() => {
				uni.switchTab({
					url: "/pages/workbench/workbench"
				})
			}, 3000)
		}
	}
</script>

<style lang="less">
	.first-page {
		.start-img {
			position: fixed;
			top: 0;
			bottom: 0;
			left: 0;
			right: 0;
			z-index: 999;

			.start-img-css {
				width: 100%;
				height: 100%;
			}
		}
	}
</style>